package com.cheems.service.impl;

import com.cheems.dao.TopPicMapper;
import com.cheems.entity.Pojo.TopPic;
import com.cheems.service.TopPicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TopPicServiceImpl implements TopPicService {

    @Autowired
    private TopPicMapper topPicMapper;

    /**
     * 首页展示大图
     *
     * @return
     */
    @Override
    public List<TopPic> homeBanner() {
        List<TopPic> topPicList = topPicMapper.select();
        return topPicList;
    }
}
